<template>
  <!-- 智能 -->
  <div class="smart-container">
    <div class="content">
      <div class="handle-box">
        <!-- 输入框中填写文件夹的路径 -->
        <el-input v-model="input" placeholder="请输入文件夹路径" />
        <!-- 点击按钮，上传文件夹 -->
        <el-button class="btn" type="primary" @click="handle">开始处理</el-button>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from "vue"
import { ElMessage } from "element-plus"
const input = ref("")
function handle() {
  // 如果输入框为空，提醒用户输入
  if (!input.value) {
    ElMessage.error("请输入文件夹路径")
    return
  }
  console.log("开始处理")
  // 处理完成后需要将输入框清空
  // input.value = ""
}
</script>
<style scoped lang="scss">
.smart-container {
  padding: 0 16px 30px;

  .content {
    padding: 0 0px 20px;
    background: #fff;
    border-radius: 6px;
  }

  .handle-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;

    .btn {
      margin-left: 20px;
    }
  }
}
</style>
